//
//  ADDViewController.m
//  UI_NavigationCtrollerHomework
//
//  Created by dllo on 16/7/21.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ADDViewController.h"

@interface ADDViewController ()

@end

@implementation ADDViewController

- (void)viewDidLoad {
    [super viewDidLoad];
      self.view.backgroundColor = [UIColor colorWithRed:1.000 green:0.898 blue:0.418 alpha:1.000];
      self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@"←" style:UIBarButtonItemStylePlain target:self action:@selector(handleleft:)];
}

- (void)handleleft:(UIBarButtonItem *)left {
      [self.navigationController popViewControllerAnimated:YES];

}
- (void)viewWillAppear:(BOOL)animated

{
      
      [super viewWillAppear:animated];
      
      self.tabBarController.tabBar.hidden=YES;
      
}

- (void)viewWillDisappear:(BOOL)animated

{
      
      [super viewWillDisappear:animated];
      
      self.tabBarController.tabBar.hidden=NO;
      
}




- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
